package com.bw.liuyushan.zhuangao4_mvptest1.BaseUrl;

import com.bw.liuyushan.zhuangao4_mvptest1.Entity.UserBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * ZhuanGao4_MVPTest1
 * file name is : APIUser
 * created by Ender on 2021/8/19 13:55.
 * author : 刘雨杉
 * Describe(作用):快手登录注册的链接
 */
public interface APIUser {
    String url = "http://www.fenghongzhang.com:7777/";

    @POST("login/in")
    @FormUrlEncoded
    Observable<UserBean> login(@Field("userName")String name, @Field("userPwd")String pwd);

    @POST("register/new")
    @FormUrlEncoded
    Observable<UserBean> reg(@Field("userName")String name,@Field("userPwd")String pwd);
}
